package indi.zhifa.engine.test.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import indi.zhifa.core.enummemo.entity.ann.EnumDesc;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@EnumDesc(name = "商品单位类型",desc = "商品单位类型",defaultIdx = 2,defaultItem = "大小单位")
public enum EItemUnitType {


    SINGLE_UNIT(1,"单单位","只有一个小单位"),
    NORMAL_UNIT(2,"大小单位","有一个大单位，有一个小单位"),
    TRIPLE_UNIT(3,"三单位","有一个大单位，中单位，小单位");

    @EnumValue
    @Getter
    private final int code;
    @Getter
    private final String name;
    @Getter
    private final String desc;
}
